

<% var pageLevelJS = { %>
<%include("/WEB-INF/views/btl/template/include/select2.html"){}%>
<script type="text/javascript">
var settings = {
			modelDomainFlag:"str"
		 ,modelName:"库信息"
		 ,modelFlag:"schema"
		 ,key:"${sessionId}" 
		}
</script> 
<script type="text/javascript" src="${ctx}/static/js/str/schema/edit.js"></script>
<%};%> 
<% var layoutParas =
{"title":"","add":isEmpty(data.id),"formId":"applyeditForm","pageLevelJS":pageLevelJS};
layout("/WEB-INF/views/btl/template/backBasicEditFormTemplate.html", layoutParas){ %>
	<input type="hidden" name="id" value="${data.id}">
      <div class="form-group  col-md-5">
	       <label for="name" class="required-before col-sm-3 control-label no-padding-right">库名:</label>
	       <div class="col-sm-9 inline-height ">
				  <input type="text" oldval="${data.nameEn}" value="${data.nameEn}" class="validate[required,custom[validName],maxSize[50]] col-xs-10" name="nameEn" placeholder="库名" />
	 	    </div> 
	   </div>
	  <div class="form-group col-md-5">
	     <label for="remark" class="col-sm-3 control-label no-padding-right">中文库名:</label>
	     <div class="col-sm-9 inline-height">
		    <input type="text"   oldval="${data.name}" value="${data.name}" class="validate[maxSize[50]] col-xs-10" name="name" placeholder="中文库名">
		  </div>
	  </div>
	  <%if(isEmpty(data.id)){%>
	   	<div class="form-group  col-md-5">
		     <label class="col-sm-3 control-label no-padding-right" for="name">类别:</label>
			<div class="col-sm-9 inline-height">
		  <select placeholder="类别" name="categoryCode" class="col-xs-10">
				 <% for(res in dictitem){ %>
				  <option value="${res.code}">${res.name}</option>
			　　   <% } %>
			</select>
		  </div> 
		  </div> 
   <%}else{%>
	  <div class="form-group col-md-5">
	     <label for="remark" class="col-sm-3 control-label no-padding-right">类别:</label>
	     <div class="col-sm-9 inline-height">
		    <input type="text"   oldval="${data.categoryCode}" value="${data.categoryCode}" disabled="disabled" class="disabled validate[maxSize[50]] col-xs-10" name="categoryCode" placeholder="类别">
		  </div>
	  </div>
   <%}%> 
	  <div class="form-group col-md-5">
	     <label for="remark" class="col-sm-3 control-label no-padding-right">备注:</label>
	     <div class="col-sm-9 inline-height">
		    <input type="text"   oldval="${data.remark}" value="${data.remark}" class="validate[maxSize[50]] col-xs-10" name="remark" placeholder="备注">
		  </div>
	  </div>	  
<%} %>
